﻿#ifndef SCREENSHOTTOOL_H
#define SCREENSHOTTOOL_H

#include <QMainWindow>
#include <QSystemTrayIcon>
#include "ScreenshotOverlay.h"
#include <QStandardPaths>
#include <QTimer>

class ScreenshotTool : public QMainWindow
{
    Q_OBJECT
public:
    ScreenshotTool(QWidget *parent = nullptr);
    void takeScreenshot();
private slots:
    void onScreenshotAccepted(const QPixmap &screenshot);
    void onScreenshotCancelled();
    void onScreenshotSaveRequested(const QPixmap &screenshot);
private:
    void closeScreenshotOverlay();
private:
    ScreenshotOverlay *m_screenshotOverlay;
signals:
    void sigShowMainwindow();
};
#endif // SCREENSHOTTOOL_H
